//
//  KBaseCommandDTO.m
//  KutulusLaw
//
//  Created by Mahmood1 on 12/10/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "KBaseCommandDTO.h"

@implementation KBaseCommandDTO
@synthesize module = _module, action = _action, ajaxAction = _ajaxAction, sessionID = _sessionID;

- (id)init {
    self = [super init];
    if (self) {
        self.module = kAPI_MODULE;
		self.action = @"";
		self.ajaxAction = kAPI_AJAX_VALUE;
		self.sessionID = @"";
    }
	
    return self;
}

- (NSMutableDictionary *) dictionary {
	return [NSMutableDictionary dictionaryWithObjectsAndKeys:self.module, kKEY_MODULE, self.action, kKEY_ACTION, self.ajaxAction, kKEY_AJAX_ACTION, self.sessionID, kKEY_SESSION_ID, nil];
}

- (NSString *)JSONString {
	return [[self dictionary] JSONString];
}
@end
